
window.οnlοad=function(){
    var oTab=document.getElementById('tab1');
 
    for(var i=0;i<oTab.tBodies[0].rows.length;i++){
        if (i%2==0){
            oTab.tBodies[0].rows[i].style.background='snow';
        }else{
            oTab.tBodies[0].rows[i].style.background='white';
        }
        var oldcolor='';
        oTab.tBodies[0].rows[i].οnmοuseοver=function(){
            oldcolor=this.style.background;
            this.style.background='green';
        };
        oTab.tBodies[0].rows[i].οnmοuseοut=function(){
            this.style.background=oldcolor;
        };
    }
}